package com.songxu.util;

import javax.servlet.http.HttpServletRequest;

public class WebUtil {
	
	public static String getDomain(HttpServletRequest request)
	{
		StringBuffer url = request.getRequestURL();  
		String tempContextUrl = url.delete(url.length() - request.getRequestURI().length(), url.length()).append("/").toString();  
		return tempContextUrl;
	}

}
